package com.zzyl.service;

import com.zzyl.base.PageResponse;
import com.zzyl.vo.ReservationVo;
import com.zzyl.vo.TimeCountVo;

import java.util.List;

public interface CustomerReservationService {
    PageResponse<ReservationVo> selectByPage(Integer pageNum, Integer pageSize, Integer status);

    /**
     * 新增预约
     * @param reservationVo
     */
    void add(ReservationVo reservationVo);

    /**
     * 取消预约
     * @param id
     */
    void cancelAppointment(Long id);

    /**
     * 查询取消预约次数
     * @return {@link Integer }
     */
    Integer cancelCount();

    /**
     * 查询每个时间段剩余预约次数
     * @param time
     * @return {@link List }<{@link TimeCountVo }>
     */
    List<TimeCountVo> numberRemaining(Long time);

    /**
     *定时任务
     */
    void scheduledTasks();
}
